From: Florian Müllner Date: Thu, 31 Jan 2019 23:53:51 +0000 (+0100) Subject: shellMountOperation: Remove unused functions X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~845^2^2~111 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e10a768ddb14fe62d97b555c200a47860185ede9;p=gnome-shell.git shellMountOperation: Remove unused functions Spotted by eslint. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/606 --- diff --git a/js/ui/shellMountOperation.js b/js/ui/shellMountOperation.js index 73f1ceee3..f7c470f71 100644 --- a/js/ui/shellMountOperation.js +++ b/js/ui/shellMountOperation.js @@ -20,16 +20,6 @@ var WORK_SPINNER_ICON_SIZE = 16; const REMEMBER_MOUNT_PASSWORD_KEY = 'remember-mount-password'; /* ------ Common Utils ------- */ -function _setLabelText(label, text) { - if (text) { - label.set_text(text); - label.show(); - } else { - label.set_text(''); - label.hide(); - } -} - function _setButtonsForChoices(dialog, choices) { let buttons = []; @@ -50,11 +40,6 @@ function _setLabelsForMessage(content, message) { content.body = labels.join('\n'); } -function _createIcon(gicon) { - return new St.Icon({ gicon: gicon, - style_class: 'shell-mount-operation-icon' }) -} - /* -------------------------------------------------------- */ var ListItem = class {